import { requestSearchList } from "@/api"
const state={
    searchList:{}
}
const mutations ={
    SET_SEARCHLIST_STATE(state,value){
        state.searchList = value
    }
}
const getters ={
    trademarkList(state){

        return state.searchList.trademarkList
    },
    attrsList(state){
        return state.searchList.attrsList
    },
    goodsList(state){
        return state.searchList.goodsList
    }
}
const actions={
    async getSearchList({commit},searchParams){
        const result  = await requestSearchList(searchParams)
        commit("SET_SEARCHLIST_STATE",result)
    }
}
export default {
    namespaced:true,
    state,
    mutations,
    getters,
    actions
}